Skip to main content
Version: Next

Identity Algorithm

This algorithm is effectively a NOP (No Opoperation). The data value returned is the same as the original data value that is passed to be masked, except as possibly modified by common masker properties. The maskers created with the Identity algorithm can be useful in testing and benchmarking tasks. The Identity algorithm is also perfect for implementing data cleansing tasks using the common masker properties.

Algorithm Characteristics

  • Algorithm: Identity
  • Masking Technique - None
  • Supported Types: String, Number and Date
  • Referential Integrity: true
  • Conflict-free: true
  • Realistic Data: true
  • Reversible: true

Properties

  • duplicate { boolean; optional; default: false }
    If true, then instead of returning a reference to the original data value, the original data value is duplicated and a reference to the new duplicate data value is returned as the masked data value
    Example: "duplicate": true

Example JSON configuration

{
"name": "ExampleIdentityMasker",
"description": "Trims whaiote space, changes to Title case and changes `null` or empty strings to 'N/A'.",
"algorithm": "Identity",
"isEmptyDefault": true,
"defaultString": "N/A",
"trimWhiteSpace": true,
"outputCase": "Title",
"duplicate": false
}

Default Maskers based on the Identity Algorithm

  1. IdentityMasker